package com.app.service;

import java.util.HashMap;
import java.util.Map;

public class MessageService implements IMessageService{
	Map<Integer,String> map=new HashMap<Integer, String>();
	int i=1;
	@Override
	public void postMessage(String message) {
		map.put(i++,message);
	}
	@Override
	public Map<Integer,String> getMessageList() {
		return map;
	}
	@Override
	public void deleteMessage(Integer key) {
		map.remove(key);	
	}
}
